﻿<!DOCTYPE html>
<html>

<head>
<meta charset="UTP-8"/>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> 
    <title>2048</title>
    <link rel="stylesheet" type="text/css" href="2048.css" /><!-- 加载2048的样式 -->

    <script type="text/javascript" src="jquery.min.js"></script><!-- 加载JQuery的库函数 -->
    <script type="text/javascript" src="support2048.js"></script><!-- 加载底层支撑 -->
    <script type="text/javascript" src="showanimation2048.js"></script><!-- 加载动画效果 -->
    <script type="text/javascript" src="main2048.js"></script><!-- 加载游戏主逻辑 -->
 
</head>

<body>
    <header>
        <h1>2048 by ZY</h1><!-- 游戏题目 -->
        <a href="javascript:newgame();" id="newgamebutton">New Game</a><!-- newgame键，响应一个JavaScript函数 -->
        <p>score : <span id="score">0</span></p><!-- 显示玩家分数，初始化为0，为方便分数动态变化使用span标签 -->
    </header>

    <div id="grid-container"><!-- 游戏主题格子 -->
        <div class="grid-cell" id="grid-cell-0-0"></div><!-- 小格子的类别和ID -->
        <div class="grid-cell" id="grid-cell-0-1"></div>
        <div class="grid-cell" id="grid-cell-0-2"></div>
        <div class="grid-cell" id="grid-cell-0-3"></div>

        <div class="grid-cell" id="grid-cell-1-0"></div>
        <div class="grid-cell" id="grid-cell-1-1"></div>
        <div class="grid-cell" id="grid-cell-1-2"></div>
        <div class="grid-cell" id="grid-cell-1-3"></div>

        <div class="grid-cell" id="grid-cell-2-0"></div>
        <div class="grid-cell" id="grid-cell-2-1"></div>
        <div class="grid-cell" id="grid-cell-2-2"></div>
        <div class="grid-cell" id="grid-cell-2-3"></div>

        <div class="grid-cell" id="grid-cell-3-0"></div>
        <div class="grid-cell" id="grid-cell-3-1"></div>
        <div class="grid-cell" id="grid-cell-3-2"></div>
        <div class="grid-cell" id="grid-cell-3-3"></div>
    </div>
    
</body>
</html>